package org.hales.vo;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class UserVO {

  @ApiModelProperty("token")
  private String token;

  @ApiModelProperty("用户账号")
  private String userId;

  @ApiModelProperty("用户名称")
  private String userName;

  @ApiModelProperty("用户类型ID")
  private Integer userTypeId;

  @ApiModelProperty("用户类型名称")
  private String userTypeName;

  @ApiModelProperty("所属行政区划编号")
  private String districtCode;

  @JsonIgnore
  @ApiModelProperty("所属行政区划级别")
  private Integer districtLevel;

  @ApiModelProperty("所属行政区划全称")
  private String districtFullName;

  @ApiModelProperty("所属环保部门编号")
  private String departmentCode;

  @JsonIgnore
  @ApiModelProperty("所属环保部门级别")
  private Integer departmentLevel;

  @ApiModelProperty("所属环保部门全称")
  private String departmentFullName;

  @ApiModelProperty("企业ID")
  private Integer factoryId;

  @ApiModelProperty("部门名称")
  private String department;

  @ApiModelProperty("邮箱")
  private String email;

  @ApiModelProperty("手机号")
  private String mobile;

  @ApiModelProperty("电话")
  private String tel;

  @JsonIgnore
  @ApiModelProperty("密码")
  private String password;

  @ApiModelProperty("密保问题")
  private String passwordQuestion;

  @ApiModelProperty("密保答案")
  private String passwordAnswer;

  @ApiModelProperty("创建用户")
  private String createUser;

  @ApiModelProperty("创建时间")
  private Date createDate;

  @ApiModelProperty("最近一次登录IP")
  private String lastLoginIp;

  @ApiModelProperty("最近一次登录时间")
  private Date lastLoginDate;

  @ApiModelProperty("是否激活")
  private String active;

  @ApiModelProperty("是否自动打开工作站  0 否   1是")
  private Integer isOpenWorkStation;

  @ApiModelProperty("角色ID")
  private String roleId;

  @ApiModelProperty("角色名称")
  private String roleName;

  @ApiModelProperty("权限")
  private String rights;

  @ApiModelProperty("权限")
  private String AppRoleRights;

  @ApiModelProperty("是否还是初始密码")
  private boolean isInitialPWD;

  public UserVO() {
    this.userId = "";
    this.userName = "";
    this.userTypeId = -1;
    this.userTypeName = "";
    this.districtCode = "";
    this.districtLevel = -1;
    this.districtFullName = "";
    this.departmentCode = "";
    this.departmentLevel = -1;
    this.departmentFullName = "";
    this.department = "";
    this.factoryId = -1;
    this.email = "";
    this.mobile = "";
    this.tel = "";
    this.password = "";
    this.passwordQuestion = "";
    this.passwordAnswer = "";
    this.createUser = "";
    this.lastLoginIp = "";
    this.active = "";
    this.roleId = "";
    this.roleName = "";
    this.rights ="";
    this.AppRoleRights ="";
    this.isInitialPWD = false;
  }
}
